<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>时间控件</title>
		<!--基础文件-->
		<link rel="stylesheet" type="text/css" href="css/base.css"/>
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<!--时间插件css-->
		<link rel="stylesheet" type="text/css" href="plugins/datePicker/skin/default/datepicker.css"/>
	</head>
	<body>
	<div class="scrollBar" id="StyleBox">
		<!--created by sun peng cheng 2017-11-13-->
		<div class="scrollBar" id="StyleBox">
			<div class="inputDiv clearfix" style="margin-top: 50px;">
				<input class="fl Wdate dateInput" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" name="" id="" value="" placeholder="请选择时间">
				<span class="inlineblock ml30">(实现选择年月日)</span>
			</div>
			<div class="inputDiv clearfix" style="margin-top: 50px;">
				<input class="fl Wdate dateInput" onclick="WdatePicker({maxDate:'%y-%M-%d'})" type="text" name="" id="" value="" placeholder="请选择时间">
				<span class="inlineblock ml30">只能选择今天以前的日期(包括今天)</span>
			</div>
			<div class="inputDiv clearfix" style="margin-top: 50px;">
				<input class="fl Wdate dateInput" onclick="WdatePicker({minDate:'%y-%M-{%d+1}'})" type="text" name="" id="" value="" placeholder="请选择时间">
				<span class="inlineblock ml30">(只能选择今天以后的日期(不包括今天))</span>
			</div>
			<div class="inputDiv clearfix" style="margin-top: 50px;">
				<input id="startDate" class="fl Wdate dateInput" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'endDate\')||\'2020-10-01\'}'})" type="text" name="" id="" value="" placeholder="请选择时间">
				<span class="inlineblock fl ml10 mr10">-----</span>
				<input id="endDate" class="fl Wdate dateInput" onclick="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}',maxDate:'2020-10-01'})" type="text" name="" id="" value="" placeholder="请选择时间">
				<span class="inlineblock ml30 fl">(实现起始时间选择)</span>
			</div>
		</div>
	</div>	
	</body>
	<!--基础文件-->
	<script type="text/javascript" src="js/common/jquery.min.js"></script>
	<!--时间插件-->
	<script src="plugins/datePicker/WdatePicker.js" type="text/javascript" charset="utf-8"></script>
</html>
